package com.sds.shop.action;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.sds.fw.mvc.Action;
import com.sds.fw.mvc.HttpUtil;
import com.sds.shop.dao.OrderDAO;
import com.sds.shop.vo.OrderVO;

public class OrderInfoAction extends Action{

	@Override
	public void execute(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
		// TODO Auto-generated method stub
		String path;
		OrderDAO dao = new OrderDAO();
		ArrayList <OrderVO> ov = new ArrayList<OrderVO>();
		ov = dao.getOrder();
		request.setAttribute("orderInformation", ov);
		path = "/jsp/orderinfo.jsp";
		HttpUtil.forward(request, response, path);		
	}
}
